package com.atguigu.spzx.model.common;

import lombok.Getter;

@Getter
public enum ResultCodeEnum {
    SUCCESS(200 , "SUCCESS"),
    ERROR(-1 , "未知错误"),
    LOGIN_ERROR(201 , "用户名或者密码错误"),
    LOGIN_CODE_ERROR(202 , "验证码错误"),
    LOGIN_EXPIRE_ERROR(203 , "登录状态失效"),
    USERNAME_EXISTS_ERROR(204 , "账号已存在"),
    FILE_UPLOAD_ERROR(301 , "文件上传失败"),
    FILE_DELETE_ERROR(302 , "文件删除失败"),
    MENU_DELETE_ERROR(401 , "菜单存在子菜单"),
    FILE_EXPORT_ERROR(303, "文件导出失败" );
    private Integer code;
    private String message;

    private ResultCodeEnum(Integer code,String message){
        this.code = code;
        this.message = message;
    }
}
